# fceuDroid Makefile 
# - for eclipse to auto build

all:
	ndk-build -j8	
	
#APP_OPTIM=debug NDK_DEBUG=1


clean:
	ndk-build clean
	
headers:
	javah -classpath bin ca.halsafar.nesdroid.Emulator
	mv ca_halsafar_nesdroid_Emulator.h ./jni/EmulatorBridge.h
	
install:
	adb install NESDroidRelease.apk	
	
uninstall:
	adb uninstall ca.halsafar.nesdroid
	
zipalign:
	rm -f NESDroidRelease.apk
	zipalign -v 4 NESDroid-unaligned.apk NESDroidRelease.apk
	
test_shader:
	cgc -ogles -profile glslf $(FILE)
	
push_shader:
	adb push $(FILE) /sdcard/NESDroid/shaders/